home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14573 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: printing to printer???
  5. Date: 15 Apr 1996 15:13 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <15APR199615131703@erich.triumf.ca>
  9. References: <829594390.19866@smason.demon.co.uk>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <829594390.19866@smason.demon.co.uk>, Jaden@smason.demon.co.uk writes...
  14. >Does anyone know how to print a string to a printer using Ansi C or
  15. >Microsoft C++v7????? TIA...
  16.  
  17. This is dependent on your operating system, but since you mention Microsoft C,
  18. I assume you are using MS-DOS or Windoze.  You would likely get a better
  19. response if you asked in a system-specific newsgroup, like
  20. comp.os.msdos.programmer, or comp.os.ms-windows.programmer.misc, as
  21. appropriate.
  22.  
  23. Under MS-DOS, both Microsoft and Borland compilers open the stream "stdprn"
  24. automatically, so you can print just by saying:
  25.     fprintf(stdprn, "the usual printf stuff...");
  26. (Don't know if this works in Windoze...)
  27.  
  28.  
  29.  
  30. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  31. Internet: bennett@triumf.ca         | of one another only when one can be
  32. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  33. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  34. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  35. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  36.  
  37.